package com.literature.threeGroup;

import com.literature.threeGroup.util.IdWorker;
import com.literature.threeGroup.util.JwtUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;

/**
 * @author VULCAN
 * @create 2020-01-07 13:55
 * @desc
 **/
@SpringBootApplication
@EnableEurekaClient
public class serverapp {
    public static void main(String[] args) {
        SpringApplication.run(serverapp.class);
    }

    @Bean
    public JwtUtil JwtUtil(){
        return new JwtUtil();
    }
    @Bean
    public IdWorker idWorker(){
        return new IdWorker(1,3);
    }
}
